package com.hqins.app.cloud.common;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

@Component
@Scope("prototype")
public class ResponseObject {
    SimpleDateFormat dateFormate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S");
    private boolean success = true;
    private String message;
    private Object content;
    private int status = 200;

    public String getTransTime() {
        transTime = dateFormate.format(new Date());
        return transTime;
    }

    public void setTransTime(String transTime) {
        this.transTime = transTime;
    }

    private String transTime;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
